g_object_notify (G_OBJECT (font_button), "font");
g_object_notify (G_OBJECT (font_button), "font-desc");
- g_object_notify (G_OBJECT (font_button), "font-name");
g_object_thaw_notify (object);
}
*
* Note that this signal is only emitted when the user
* changes the font. If you need to react to programmatic font changes
- * as well, use the notify::font-name signal.
+ * as well, use the notify::font signal.
*
* Since: 2.4
*/
GtkWidget *
gtk_font_button_new_with_font (const gchar *fontname)
{
- return g_object_new (GTK_TYPE_FONT_BUTTON, "font-name", fontname, NULL);
+ return g_object_new (GTK_TYPE_FONT_BUTTON, "font", fontname, NULL);
}
/**
g_object_notify (G_OBJECT (font_button), "font");
g_object_notify (G_OBJECT (font_button), "font-desc");
- g_object_notify (G_OBJECT (font_button), "font-name");
g_object_thaw_notify (object);
init_font (GtkInspectorVisual *vis)
{
g_object_bind_property (gtk_settings_get_default (), "gtk-font-name",
- vis->priv->font_button, "font-name",
+ vis->priv->font_button, "font",
G_BINDING_BIDIRECTIONAL|G_BINDING_SYNC_CREATE);
}